home *** CD-ROM | disk | FTP | other *** search
- global gPlatform, gGroep, gFile, gLinks
-
- on startMovie
- if gPlatform = VOID then
- if the platform contains "windows" then
- gPlatform = "PC"
- else
- gPlatform = "MAC"
- end if
- gGroep = 1
- gGroepNaam = EMPTY
- gFile = 1
- gLinks = []
- loadDB()
- end if
- if the runMode contains "Author" then
- else
- if the platform contains "Windows" then
- window().new("info")
- window("info").titlebarOptions.closebox = 1
- window("info").open()
- else
- open(window("info"))
- end if
- end if
- end
-
- on stopMovie
- unloadDB()
- clearGlobals()
- end
-
- on deleteLogos
- repeat with spriteNr in gLinks
- sprite(spriteNr).puppet = 0
- sprite(spriteNr).scriptInstanceList = []
- sprite(spriteNr).visible = 0
- end repeat
- gLinks = []
- updateStage()
- end
-
- on findID list, id
- repeat with i = 1 to list.count
- if list[i].id = id then
- return i
- exit
- end if
- end repeat
- return 0
- end
-
- on SearchAndReplace input, stringToFind, stringToInsert
- output = EMPTY
- findLen = stringToFind.length - 1
- repeat while input contains stringToFind
- currOffset = offset(stringToFind, input)
- output = output & input.char[1..currOffset]
- delete char -30000 of output
- output = output & stringToInsert
- delete input.char[1..currOffset + findLen]
- end repeat
- output = output & input
- return output
- end
-